package day3;

public class Demo8 {

    public static void main(String[] args) {
        Demo8 d = new Demo8();
        d.takeEgg();
        d.tangle();
    }

    public void takeEgg(){
        for (int i = 0; i <= 50000; i++){
            if (i % 2 == 1 && i % 3 == 0 && i % 4 == 1 && i % 5 == 4 && i % 6 == 3 && i % 7 == 0 && i % 8 == 1 && i % 9 == 0){
                System.out.println(i);
            }
        }
    }

    public void tangle(){
        for (int i = 0; i < 4; i++){
            for (int j = 0; j <= i; j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
